﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:PSE.Framework.UI.Controls.SmartClient;assembly=PSE.Framework.UI.Controls">

    <!--BEGIN BUTTON-->
    <ControlTemplate x:Key="ControlButtonText" TargetType="{x:Type Controls:Button}">
        <Border x:Name="Border" HorizontalAlignment="Stretch" Background="{DynamicResource BrushButtonBackground}" BorderBrush="{DynamicResource BrushButtonBorder}" BorderThickness="0.7" CornerRadius="4" Height="21" Padding="{TemplateBinding Padding}">
            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True" Style="{DynamicResource ControlFont}" TextElement.Foreground="{TemplateBinding Foreground}"/>
        </Border>
        <ControlTemplate.Triggers>
            <Trigger Property="IsDefault" Value="True">
                <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderDefault}" TargetName="Border"/>
                <Setter Property="BorderThickness" Value="2" TargetName="Border"/>
            </Trigger>
            <Trigger Property="IsMouseOver" Value="true">
                <Setter Property="Background" Value="{DynamicResource BrushButtonBackgroundHover}" TargetName="Border"/>
                <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderHover}" TargetName="Border"/>
            </Trigger>
            <Trigger Property="IsFocused" Value="true">
                <Setter Property="BorderThickness" Value="2" TargetName="Border"/>
                <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderFocused}" TargetName="Border"/>
            </Trigger>
            <Trigger Property="IsMouseCaptured" Value="True">
                <Setter Property="Background" Value="{DynamicResource BrushButtonBackgroundPressed}" TargetName="Border"/>
                <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderPressed}" TargetName="Border"/>
            </Trigger>
            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="Foreground" Value="{DynamicResource BrushButtonForegroundDisabled}"/>
                <Setter Property="Background" Value="{DynamicResource BrushButtonBackgroundDisabled}" TargetName="Border"/>
                <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderDisabled}" TargetName="Border"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <ControlTemplate x:Key="ControlButtonIcon" TargetType="{x:Type Controls:Button}">
        <Border x:Name="Border" Background="{DynamicResource BrushButtonBackground}" BorderBrush="{DynamicResource BrushButtonBorder}" BorderThickness="0.7" CornerRadius="4" Height="21" Padding="5,0,5,0" ToolTipService.ShowOnDisabled="True">
            <Rectangle x:Name="IconArea" Fill="{TemplateBinding Background}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,2"/>
        </Border>
        <ControlTemplate.Triggers>
            <Trigger Property="IsDefault" Value="True">
                <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderDefault}" TargetName="Border"/>
                <Setter Property="BorderThickness" Value="2" TargetName="Border"/>
            </Trigger>
            <Trigger Property="IsMouseOver" Value="true">
                <Setter Property="Background" Value="{DynamicResource BrushButtonBackgroundHover}" TargetName="Border"/>
                <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderHover}" TargetName="Border"/>
            </Trigger>
            <Trigger Property="IsFocused" Value="true">
                <Setter Property="BorderThickness" Value="2" TargetName="Border"/>
                <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderFocused}" TargetName="Border"/>
            </Trigger>
            <Trigger Property="IsMouseCaptured" Value="True">
                <Setter Property="Background" Value="{DynamicResource BrushButtonBackgroundPressed}" TargetName="Border"/>
                <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderPressed}" TargetName="Border"/>
            </Trigger>
            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="Background" Value="{DynamicResource BrushButtonBackgroundDisabled}" TargetName="Border"/>
                <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderDisabled}" TargetName="Border"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonTimer">
                <Setter Property="Width" Value="24"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonDocument">
                <Setter Property="Width" Value="22.5"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonLink">
                <Setter Property="Width" Value="24"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonEdit">
                <Setter Property="Width" Value="23"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonSearchDocument">
                <Setter Property="Width" Value="22.5"/>
                <Setter Property="Margin" Value="0,2,-1,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonRefresh">
                <Setter Property="Width" Value="24"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Tooltip.Atualizar}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonSearch">
                <Setter Property="Width" Value="23"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Tooltip.Pesquisar}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonOK">
                <Setter Property="Width" Value="23"/>
                <Setter Property="Margin" Value="-1,4" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonSave">
                <Setter Property="Width" Value="23.5"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Tooltip.Salvar}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonCancel">
                <Setter Property="Width" Value="24"/>
                <Setter Property="Margin" Value="-1,3" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Label.Cancelar}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonDelete">
                <Setter Property="Width" Value="22"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Label.Excluir}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonClient">
                <Setter Property="Width" Value="22"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonClients">
                <Setter Property="Width" Value="28"/>
                <Setter Property="Margin" Value="-2,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonCopy">
                <Setter Property="Width" Value="24.5"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Label.Copiar}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonSetting">
                <Setter Property="Width" Value="27"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Tooltip.Configurar}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonCut">
                <Setter Property="Width" Value="25"/>
                <Setter Property="Margin" Value="-1,2.5" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Tooltip.Cortar}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonPrint">
                <Setter Property="Width" Value="23"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonNew">
                <Setter Property="Width" Value="23"/>
                <Setter Property="Margin" Value="-1,2,-3,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonUndoAll">
                <Setter Property="Width" Value="27"/>
                <Setter Property="Margin" Value="-1.5,1,-2,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Label.DesfazerTudo}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonUndoLast">
                <Setter Property="Width" Value="23"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonSearchDB">
                <Setter Property="Width" Value="29"/>
                <Setter Property="Margin" Value="-1,4,-1,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonPaste">
                <Setter Property="Margin" Value="-0.5,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Tooltip.Colar}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonExcel">
                <Setter Property="Width" Value="26"/>
                <Setter Property="Margin" Value="-2,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Tooltip.ExportarExcel}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonSaveManual">
                <Setter Property="Width" Value="38.72"/>
                <Setter Property="Margin" Value="-2,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Label.SalvarManual}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonSaveAutomatic">
                <Setter Property="Width" Value="38.62"/>
                <Setter Property="Margin" Value="-2,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Label.SalvarAutomatico}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonErase">
                <Setter Property="Width" Value="28"/>
                <Setter Property="Margin" Value="-2,4" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Label.Apagar}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonRightArrow">
                <Setter Property="Width" Value="22"/>
                <Setter Property="Margin" Value="-2,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonLeftArrow">
                <Setter Property="Width" Value="22"/>
                <Setter Property="Margin" Value="-2,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonBottomArrow">
                <Setter Property="Width" Value="22"/>
                <Setter Property="Margin" Value="-2,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonTopArrow">
                <Setter Property="Width" Value="22"/>
                <Setter Property="Margin" Value="-2,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonBrowse">
                <Setter Property="Margin" Value="-2,8.5" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Label.Buscar}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonNewSearch">
                <Setter Property="Width" Value="21"/>
                <Setter Property="Margin" Value="-2,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Label.NovaPesquisa}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonSettle">
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Label.Liquidar}"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <Style TargetType="{x:Type Controls:Button}">
        <Setter Property="Padding" Value="5,0,5,0"/>
        <Setter Property="Foreground" Value="{DynamicResource BrushButtonForeground}"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="CausesValidation" Value="False"/>
        <Setter Property="Width" Value="21"/>
        <Setter Property="Height" Value="21"/>
        <Setter Property="ToolTipService.ShowOnDisabled" Value="True" />
        <Setter Property="Template" Value="{StaticResource ControlButtonIcon}"/>
        <Style.Triggers>
            <Trigger Property="Icon" Value="{x:Null}">
                <Setter Property="Width" Value="100"/>
                <Setter Property="Template" Value="{StaticResource ControlButtonText}"/>
            </Trigger>
            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="Foreground" Value="{DynamicResource BrushButtonForegroundDisabled}"/>
            </Trigger>
        </Style.Triggers>
    </Style>
    
    <ControlTemplate x:Key="PSEControlButtonText" TargetType="{x:Type Controls:PSEButton}">
        <Border x:Name="Border" HorizontalAlignment="Stretch" Background="{DynamicResource BrushButtonBackground}" BorderBrush="{DynamicResource BrushButtonBorder}" BorderThickness="0.7" CornerRadius="4" Height="21" Padding="{TemplateBinding Padding}">
            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True" Style="{DynamicResource ControlFont}" TextElement.Foreground="{TemplateBinding Foreground}"/>
        </Border>
        <ControlTemplate.Triggers>
            <Trigger Property="IsDefault" Value="True">
                <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderDefault}" TargetName="Border"/>
                <Setter Property="BorderThickness" Value="2" TargetName="Border"/>
            </Trigger>
            <Trigger Property="IsMouseOver" Value="true">
                <Setter Property="Background" Value="{DynamicResource BrushButtonBackgroundHover}" TargetName="Border"/>
                <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderHover}" TargetName="Border"/>
            </Trigger>
            <Trigger Property="IsFocused" Value="true">
                <Setter Property="BorderThickness" Value="2" TargetName="Border"/>
                <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderFocused}" TargetName="Border"/>
            </Trigger>
            <Trigger Property="IsMouseCaptured" Value="True">
                <Setter Property="Background" Value="{DynamicResource BrushButtonBackgroundPressed}" TargetName="Border"/>
                <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderPressed}" TargetName="Border"/>
            </Trigger>
            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="Foreground" Value="{DynamicResource BrushButtonForegroundDisabled}"/>
                <Setter Property="Background" Value="{DynamicResource BrushButtonBackgroundDisabled}" TargetName="Border"/>
                <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderDisabled}" TargetName="Border"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <ControlTemplate x:Key="PSEControlButtonIcon" TargetType="{x:Type Controls:PSEButton}">
        <Border x:Name="Border" Background="{DynamicResource BrushButtonBackground}" BorderBrush="{DynamicResource BrushButtonBorder}" BorderThickness="0.7" CornerRadius="4" Height="21" Padding="5,0,5,0" ToolTipService.ShowOnDisabled="True">
            <Rectangle x:Name="IconArea" Fill="{TemplateBinding Background}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,2"/>
        </Border>
        <ControlTemplate.Triggers>
            <Trigger Property="IsDefault" Value="True">
                <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderDefault}" TargetName="Border"/>
                <Setter Property="BorderThickness" Value="2" TargetName="Border"/>
            </Trigger>
            <Trigger Property="IsMouseOver" Value="true">
                <Setter Property="Background" Value="{DynamicResource BrushButtonBackgroundHover}" TargetName="Border"/>
                <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderHover}" TargetName="Border"/>
            </Trigger>
            <Trigger Property="IsFocused" Value="true">
                <Setter Property="BorderThickness" Value="2" TargetName="Border"/>
                <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderFocused}" TargetName="Border"/>
            </Trigger>
            <Trigger Property="IsMouseCaptured" Value="True">
                <Setter Property="Background" Value="{DynamicResource BrushButtonBackgroundPressed}" TargetName="Border"/>
                <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderPressed}" TargetName="Border"/>
            </Trigger>
            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="Background" Value="{DynamicResource BrushButtonBackgroundDisabled}" TargetName="Border"/>
                <Setter Property="BorderBrush" Value="{DynamicResource BrushButtonBorderDisabled}" TargetName="Border"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonTimer">
                <Setter Property="Width" Value="24"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonDocument">
                <Setter Property="Width" Value="22.5"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonLink">
                <Setter Property="Width" Value="24"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonEdit">
                <Setter Property="Width" Value="23"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Tooltip.Editar}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonSearchDocument">
                <Setter Property="Width" Value="22.5"/>
                <Setter Property="Margin" Value="0,2,-1,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonRefresh">
                <Setter Property="Width" Value="24"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Tooltip.Atualizar}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonSearch">
                <Setter Property="Width" Value="23"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Tooltip.Pesquisar}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonOK">
                <Setter Property="Width" Value="23"/>
                <Setter Property="Margin" Value="-1,4" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonSave">
                <Setter Property="Width" Value="23.5"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Tooltip.Salvar}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonCancel">
                <Setter Property="Width" Value="24"/>
                <Setter Property="Margin" Value="-1,3" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Label.Cancelar}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonDelete">
                <Setter Property="Width" Value="22"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Label.Excluir}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonClient">
                <Setter Property="Width" Value="22"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonClients">
                <Setter Property="Width" Value="28"/>
                <Setter Property="Margin" Value="-2,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonCopy">
                <Setter Property="Width" Value="24.5"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Label.Copiar}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonSetting">
                <Setter Property="Width" Value="27"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Tooltip.Configurar}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonCut">
                <Setter Property="Width" Value="25"/>
                <Setter Property="Margin" Value="-1,2.5" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Tooltip.Cortar}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonPrint">
                <Setter Property="Width" Value="23"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Tooltip.Imprimir}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonNew">
                <Setter Property="Width" Value="23"/>
                <Setter Property="Margin" Value="-1,2,-3,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonUndoAll">
                <Setter Property="Width" Value="27"/>
                <Setter Property="Margin" Value="-1.5,1,-2,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Label.DesfazerTudo}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonUndoLast">
                <Setter Property="Width" Value="23"/>
                <Setter Property="Margin" Value="-1,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Tooltip.DesfazerUltimaAcao}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonSearchDB">
                <Setter Property="Width" Value="29"/>
                <Setter Property="Margin" Value="-1,4,-1,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonPaste">
                <Setter Property="Margin" Value="-0.5,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Tooltip.Colar}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonExcel">
                <Setter Property="Width" Value="26"/>
                <Setter Property="Margin" Value="-2,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Tooltip.ExportarExcel}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonSaveManual">
                <Setter Property="Width" Value="38.72"/>
                <Setter Property="Margin" Value="-2,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Label.SalvarManual}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonSaveAutomatic">
                <Setter Property="Width" Value="38.62"/>
                <Setter Property="Margin" Value="-2,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Label.SalvarAutomatico}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonErase">
                <Setter Property="Width" Value="28"/>
                <Setter Property="Margin" Value="-2,4" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Label.Apagar}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonRightArrow">
                <Setter Property="Width" Value="22"/>
                <Setter Property="Margin" Value="-2,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonLeftArrow">
                <Setter Property="Width" Value="22"/>
                <Setter Property="Margin" Value="-2,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonBottomArrow">
                <Setter Property="Width" Value="22"/>
                <Setter Property="Margin" Value="-2,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonTopArrow">
                <Setter Property="Width" Value="22"/>
                <Setter Property="Margin" Value="-2,2" TargetName="IconArea"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonBrowse">
                <Setter Property="Margin" Value="-2,8.5" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Label.Buscar}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonNewSearch">
                <Setter Property="Width" Value="21"/>
                <Setter Property="Margin" Value="-2,2" TargetName="IconArea"/>
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Label.NovaPesquisa}"/>
            </Trigger>
            <Trigger Property="Icon" Value="IconButtonSettle">
                <Setter Property="ToolTip" Value="{DynamicResource Infra.Controls.Label.Liquidar}"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    
    <Style TargetType="{x:Type Controls:PSEButton}">
        <Setter Property="Padding" Value="5,0,5,0"/>
        <Setter Property="Foreground" Value="{DynamicResource BrushButtonForeground}"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="CausesValidation" Value="False"/>
        <Setter Property="Width" Value="21"/>
        <Setter Property="Height" Value="21"/>
        <Setter Property="ToolTipService.ShowOnDisabled" Value="True" />
        <Setter Property="Template" Value="{StaticResource PSEControlButtonIcon}"/>
        <Style.Triggers>
            <Trigger Property="Icon" Value="{x:Null}">
                <Setter Property="Width" Value="100"/>
                <Setter Property="Template" Value="{StaticResource PSEControlButtonText}"/>
            </Trigger>
            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="Foreground" Value="{DynamicResource BrushButtonForegroundDisabled}"/>
            </Trigger>
        </Style.Triggers>
    </Style>   
    
    <!--END BUTTON-->

    <!--BEGIN BUTTON WINDOW-->
    <Style x:Key="ControlButtonMinimize" TargetType="{x:Type Controls:Button}">
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="CausesValidation" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:Button}">
                    <Grid>
                        <Path x:Name="Path" Width="14.5419" Height="14.5419" Canvas.Left="53.2963" Canvas.Top="0.125" Stretch="Fill" StrokeThickness="0.5" StrokeLineJoin="Round" Stroke="{DynamicResource BrushButtonWindowBorder}" Data="{DynamicResource IconButtonWindow}" Fill="{DynamicResource BrushButtonWindowBackground}"/>
                        <Rectangle Width="7.33339" Height="2.41693" Canvas.Left="3.60425" Canvas.Top="26.3555" Stretch="Fill" Fill="{DynamicResource BrushButtonWindowIconFill}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundHover}" TargetName="Path"/>
                        </Trigger>
                        <Trigger Property="IsMouseCaptured" Value="True">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundPressed}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{x:Null}" TargetName="Path"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundDisabled}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{DynamicResource BrushButtonWindowBorderDisabled}" TargetName="Path"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ControlButtonMaximize" TargetType="{x:Type Controls:Button}">
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="CausesValidation" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:Button}">
                    <Grid>
                        <Path x:Name="Path" Width="14.5419" Height="14.5419" Canvas.Left="53.2963" Canvas.Top="0.125" Stretch="Fill" StrokeThickness="0.5" StrokeLineJoin="Round" Stroke="{DynamicResource BrushButtonWindowBorder}" Data="{DynamicResource IconButtonWindow}" Fill="{DynamicResource BrushButtonWindowBackground}"/>
                        <Path Width="6.74095" Height="6.00024" Canvas.Left="57.1968" Canvas.Top="4.39581" Stretch="Fill" Fill="{DynamicResource BrushButtonWindowIconFill}" Data="{DynamicResource IconButtonMaximize}" Stroke="{DynamicResource BrushButtonWindowIconBorder}" StrokeThickness="0.5"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundHover}" TargetName="Path"/>
                        </Trigger>
                        <Trigger Property="IsMouseCaptured" Value="True">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundPressed}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{x:Null}" TargetName="Path"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundDisabled}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{DynamicResource BrushButtonWindowBorderDisabled}" TargetName="Path"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ControlButtonRestore" TargetType="{x:Type Controls:Button}">
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="CausesValidation" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:Button}">
                    <Grid>
                        <Path x:Name="Path" Width="14.5419" Height="14.5419" Canvas.Left="53.2963" Canvas.Top="0.125" Stretch="Fill" StrokeThickness="0.5" StrokeLineJoin="Round" Stroke="{DynamicResource BrushButtonWindowBorder}" Data="{DynamicResource IconButtonWindow}" Fill="{DynamicResource BrushButtonWindowBackground}"/>
                        <Viewbox x:Name="Group_4_Copy" Width="7.833" Height="6.362" Canvas.Left="3.563" Canvas.Top="4.09">
                            <Canvas Width="7.83331" Height="6.36212">
                                <Path Width="5.10244" Height="4.68756" Canvas.Left="-7.62939e-006" Canvas.Top="1.67456" Stretch="Fill" Fill="{DynamicResource BrushButtonWindowIconFill}" Data="{DynamicResource IconButtonRestorePath1}" Stroke="{DynamicResource BrushButtonWindowIconBorder}" StrokeThickness="0.5"/>
                                <Path Width="5.10246" Height="4.6875" Canvas.Left="2.73086" Canvas.Top="0" Stretch="Fill" Fill="{DynamicResource BrushButtonWindowIconFill}" Data="{DynamicResource IconButtonRestorePath2}" Stroke="{DynamicResource BrushButtonWindowIconBorder}" StrokeThickness="0.5"/>
                            </Canvas>
                        </Viewbox>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundHover}" TargetName="Path"/>
                        </Trigger>
                        <Trigger Property="IsMouseCaptured" Value="True">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundPressed}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{x:Null}" TargetName="Path"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundDisabled}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{DynamicResource BrushButtonWindowBorderDisabled}" TargetName="Path"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ControlButtonClose" TargetType="{x:Type Controls:Button}">
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="CausesValidation" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:Button}">
                    <Grid>
                        <Path x:Name="Path" Width="14.5419" Height="14.5419" Canvas.Left="53.2963" Canvas.Top="0.125" Stretch="Fill" StrokeThickness="0.5" StrokeLineJoin="Round" Stroke="{DynamicResource BrushButtonWindowBorder}" Data="{DynamicResource IconButtonWindow}" Fill="{DynamicResource BrushButtonWindowBackground}"/>
                        <Path Width="6.74095" Height="6.00024" Canvas.Left="57.1968" Canvas.Top="4.39581" Stretch="Fill" Fill="{DynamicResource BrushButtonWindowIconFill}" Data="{DynamicResource IconButtonClose}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundHover}" TargetName="Path"/>
                        </Trigger>
                        <Trigger Property="IsMouseCaptured" Value="True">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundPressed}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{x:Null}" TargetName="Path"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundDisabled}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{DynamicResource BrushButtonWindowBorderDisabled}" TargetName="Path"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <RadialGradientBrush x:Key="BrushButtonHelpBackground" RadiusX="0.676917" RadiusY="0.67691" Center="0.323455,0.219576" GradientOrigin="0.323455,0.219576">
        <RadialGradientBrush.RelativeTransform>
            <TransformGroup>
                <RotateTransform CenterX="0.323455" CenterY="0.219576" Angle="62.312"/>
            </TransformGroup>
        </RadialGradientBrush.RelativeTransform>
        <GradientStop Color="{DynamicResource GradientStop1}" Offset="0"/>
        <GradientStop Color="{DynamicResource GradientStop2}" Offset="1"/>
    </RadialGradientBrush>

    <LinearGradientBrush x:Key="ButtonHelpTopBackground" StartPoint="1.07567,1.48114" EndPoint="-0.0726844,-0.507865">
        <GradientStop Color="{DynamicResource GradientStop3}" Offset="0"/>
        <GradientStop Color="{DynamicResource GradientStop4}" Offset="0.367986"/>
        <GradientStop Color="{DynamicResource GradientStop5}" Offset="0.726027"/>
        <GradientStop Color="{DynamicResource GradientStop5}" Offset="1"/>
    </LinearGradientBrush>

    <Style x:Key="ControlButtonHelp" TargetType="{x:Type Controls:Button}">
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="CausesValidation" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:Button}">
                    <Grid>
                        <Path x:Name="Path" Width="14.5419" Height="14.5419" Canvas.Left="53.2963" Canvas.Top="0.125" Stretch="Fill" StrokeThickness="0.5" StrokeLineJoin="Round" Stroke="{DynamicResource BrushButtonWindowBorder}" Data="{DynamicResource IconButtonWindow}" Fill="{DynamicResource BrushButtonWindowBackground}"/>
                        <Path Width="6.4" Height="10" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{DynamicResource BrushButtonWindowIconFill}" Data="{DynamicResource IconButtonHelp}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundHover}" TargetName="Path"/>
                        </Trigger>
                        <Trigger Property="IsMouseCaptured" Value="True">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundPressed}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{x:Null}" TargetName="Path"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonWindowBackgroundDisabled}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{DynamicResource BrushButtonWindowBorderDisabled}" TargetName="Path"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END BUTTON WINDOW-->

    <!--BEGIN BUTTON MESSAGEBOX-->
    <Style x:Key="ControlButtonMessageBoxClose" TargetType="{x:Type Controls:Button}">
        <Setter Property="CausesValidation" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:Button}">
                    <Grid>
                        <Path x:Name="Path" Width="14.5419" Height="14.5419" Canvas.Left="0" Canvas.Top="6.10352e-005" Stretch="Fill" Data="F1 M 7.27094,0.250061C 11.1486,0.250061 14.2919,3.39337 14.2919,7.271C 14.2919,11.1485 11.1485,14.2919 7.27094,14.2919C 3.39337,14.2919 0.25,11.1485 0.25,7.271C 0.25,3.39337 3.39331,0.250061 7.27094,0.250061 Z " StrokeThickness="0.5" StrokeLineJoin="Round" Stroke="{DynamicResource BrushButtonMessageBoxBorder}" Fill="{DynamicResource BrushButtonMessageBoxBackground}"/>
                        <Path Width="6.74094" Height="6.00018" Canvas.Left="3.90048" Canvas.Top="4.27087" Stretch="Fill" Fill="{DynamicResource BrushButtonMessageBoxIconFill}" Data="F1 M 3.90048,10.2711L 6.43312,7.07825L 4.20689,4.27087L 5.88255,4.27087L 7.27095,6.02094L 8.65775,4.27087L 10.335,4.27087L 8.10878,7.07825L 10.6414,10.2711L 8.96416,10.2711L 7.27095,8.13428L 5.57614,10.2711L 3.90048,10.2711 Z "/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonMessageBoxBackgroundHover}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{DynamicResource BrushButtonMessageBoxBorderHover}" TargetName="Path"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonMessageBoxBackgroundPressed}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{DynamicResource BrushButtonMessageBoxBorderPressed}" TargetName="Path"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ControlButtonMessageBoxMinimize" TargetType="{x:Type Controls:Button}">
        <Setter Property="CausesValidation" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:Button}">
                    <Grid>
                        <Path x:Name="Path" Width="14.5419" Height="14.5419" Canvas.Left="0" Canvas.Top="6.10352e-005" Stretch="Fill" Data="F1 M 7.27094,0.250061C 11.1486,0.250061 14.2919,3.39337 14.2919,7.271C 14.2919,11.1485 11.1485,14.2919 7.27094,14.2919C 3.39337,14.2919 0.25,11.1485 0.25,7.271C 0.25,3.39337 3.39331,0.250061 7.27094,0.250061 Z " StrokeThickness="0.5" StrokeLineJoin="Round" Stroke="{DynamicResource BrushButtonMessageBoxBorder}" Fill="{DynamicResource BrushButtonMessageBoxBackground}"/>
                        <Rectangle Fill="{DynamicResource BrushButtonMessageBoxIconFill}" Stroke="{DynamicResource BrushButtonMessageBoxIconMinimizeStroke}" StrokeThickness="0.5" Margin="2.893,5.741,2.693,5.732"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonMessageBoxBackgroundHover}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{DynamicResource BrushButtonMessageBoxBorderHover}" TargetName="Path"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Fill" Value="{DynamicResource BrushButtonMessageBoxBackgroundPressed}" TargetName="Path"/>
                            <Setter Property="Stroke" Value="{DynamicResource BrushButtonMessageBoxBorderPressed}" TargetName="Path"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END BUTTON MESSAGEBOX-->

    <Style x:Key="ControlButtonArrowUp" TargetType="{x:Type Controls:Button}">
        <Setter Property="CausesValidation" Value="False"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Width" Value="11.558"/>
        <Setter Property="Height" Value="7"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:Button}">
                    <Path x:Name="ArrowUp" Width="10" Height="5.969" Stretch="Fill" StrokeMiterLimit="2.75" Stroke="{DynamicResource BrushDatePickerButtonArrowBorder}" Data="{DynamicResource IconDatePickerArrowUp}" Fill="{DynamicResource BrushDatePickerArrowUpBackground}"/>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Fill" Value="{DynamicResource BrushDatePickerArrowUpBackgroundDisabled}" TargetName="ArrowUp"/>
                            <Setter Property="Stroke" Value="{DynamicResource BrushDatePickerButtonArrowBorderDisabled}" TargetName="ArrowUp"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ControlButtonArrowDown" TargetType="{x:Type Controls:Button}">
        <Setter Property="CausesValidation" Value="False"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Width" Value="11.558"/>
        <Setter Property="Height" Value="7"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:Button}">
                    <Path x:Name="ArrowDown" Width="10" Height="5.969" Stretch="Fill" StrokeMiterLimit="2.75" Stroke="{DynamicResource BrushDatePickerButtonArrowBorder}" Data="{DynamicResource IconDatePickerArrowDown}" Fill="{DynamicResource BrushDatePickerArrowDownBackground}"/>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Fill" Value="{DynamicResource BrushDatePickerArrowDownBackgroundDisabled}" TargetName="ArrowDown"/>
                            <Setter Property="Stroke" Value="{DynamicResource BrushDatePickerButtonArrowBorderDisabled}" TargetName="ArrowDown"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--BEGIN GROUP BOX BUTTONS-->

    <Style x:Key="GroupBoxCloseButton" TargetType="{x:Type Controls:Button}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:Button}">
                    <Grid Width="17" Height="17" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,0">
                        <Path x:Name="Background" Width="Auto" Height="Auto" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Stroke="{DynamicResource BrushExpanderButtonStroke}" Data="{DynamicResource IconExpanderButtonExpandBackground}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Fill="{DynamicResource BrushExpanderButtonExpandBackground}" />
                        <Path x:Name="BackgroundEffectTop" Width="Auto" Height="Auto" Canvas.Left="2.2" Canvas.Top="1.2" Stretch="Fill" Data="{DynamicResource IconExpanderButtonExpandTopEffect}" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="2.5,1.2,2.5,6.2" Fill="{DynamicResource BrushExpanderButtonExpandTopEffectBackground}" />
                        <Path x:Name="BackgroundEffectBottom" Width="Auto" Height="Auto" Canvas.Left="1.5" Canvas.Top="1.4" Stretch="Fill" Data="{DynamicResource IconExpanderButtonExpandBottomEffect}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="1.4,1.8,1.4,1.4" Fill="{DynamicResource BrushExpanderButtonExpandBottomEffectBackground}" />
                        <Path x:Name="Icon" Stroke="{DynamicResource BrushExpanderButtonIconStroke}" Fill="{DynamicResource BrushExpanderButtonIconBackground}" Stretch="Fill" StrokeLineJoin="Round" StrokeThickness="1" HorizontalAlignment="Center" Margin="0,0,0,0" VerticalAlignment="Center" Width="12.1" Height="12.092" Data="M3.0185372,0.81086701 L6.4146369,4.2063806 9.8222108,0.79773237 12.078768,2.9905766 8.6394308,6.4308274 12.061217,9.8519983 9.8366238,12.076196 6.4152177,8.6555731 3.0156807,12.056029 0.79148341,9.8312515 4.1904238,6.4312241 0.82587564,3.0674231 z" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Fill" Value="{DynamicResource BrushExpanderButtonIconBackgroundHover}" TargetName="Icon"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushExpanderButtonExpandBottomEffectBakgroundHover}" TargetName="BackgroundEffectBottom"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Fill" TargetName="Background" Value="{DynamicResource BrushExpanderBackgroundDisabled}" />
                            <Setter Property="Fill" TargetName="BackgroundEffectBottom" Value="{DynamicResource BrushExpanderBackgroundEffectBottomDisabled }"/>
                            <Setter Property="Stroke" TargetName="Background" Value="{DynamicResource BrushExpanderBackgroundStrokeDisabled}"/>
                            <Setter Property="Margin" TargetName="BackgroundEffectBottom" Value="1,1,1,1"/>
                            <Setter Property="Fill" TargetName="Icon" Value="{DynamicResource BrushExpanderBackgroundIconDisabled}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--END GROUP BOX BUTTONS-->
</ResourceDictionary>